import request from '@/utils/request'

// 查询文章管理列表
export function listDictionaryText(query) {
  return request({
    url: '/platform/dictionaryText/list',
    method: 'get',
    params: query
  })
}

// 查询文章管理详细
export function getDictionaryText(id) {
  return request({
    url: '/platform/dictionaryText/' + id,
    method: 'get'
  })
}

// 新增文章管理
export function addDictionaryText(data) {
  return request({
    url: '/platform/dictionaryText',
    method: 'post',
    data: data
  })
}

// 修改文章管理
export function updateDictionaryText(data) {
  return request({
    url: '/platform/dictionaryText',
    method: 'put',
    data: data
  })
}

// 删除文章管理
export function delDictionaryText(id) {
  return request({
    url: '/platform/dictionaryText/' + id,
    method: 'delete'
  })
}

// 导出文章管理
export function exportDictionaryText(query) {
  return request({
    url: '/platform/dictionaryText/export',
    method: 'get',
    params: query
  })
}